const userRoute = [{
    path: '/user',
    name: 'user',
    component: () => import("@/views/user/index.vue"),
    meta: {
      requiresAuth: true
    },
    children: [
      {
        path: 'address',
        name: 'address',
        component: () => import('@/views/user/address.vue'),
      },
      {
        path: 'editAddress/:id',
        name: 'editAddress',
        component: () => import("@/views/user/editAddress.vue")
      },
      {
        path: '/cart',
        name: 'cart',
        component: () => import("@/views/good/cart.vue"),
        meta: {
          requiresAuth: true
        }
      },{
        path: '/create_order',
        name: 'create_order',
        component: () => import("@/views/good/create_order.vue"),
        meta: {
          requiresAuth: true
        }
      },
      {
        name: 'order',
        path: 'order',
        component: () => import("@/views/user/order.vue")
      },
      {
        name: 'order_detail',
        path: 'order_detail/:id',
        component: () => import("@/views/user/order_detail.vue")
      }, {
        name: 'help',
        path: 'help',
        component: () => import("@/views/user/help.vue")
      }
    ]
  }];
  export default userRoute;